import this
from typing import List


def missingNumber(self, nums: List[int]) -> int:
    l, org = len(nums), sum(nums)
    new = round((l + 1) * l / 2)
    return new - org


arr = {3, 0, 1}
print(missingNumber(this, arr))
